








//
//  NMyShenbaoCell.m
//  nncloud
//
//  Created by macfai on 2018/12/4.
//  Copyright © 2018 macfai. All rights reserved.
//

#import "NMyShenbaoCell.h"

@implementation NMyShenbaoCell

- (void)awakeFromNib {
    
    [super awakeFromNib];
    self.selectionStyle = 0;
    UIView *line = [[UIView alloc]initWithFrame:CGRectMake(0, 372, ScreenWidth, 0.5)];
    line.backgroundColor = kLightGrayColor;
    [self addSubview:line];
    
    self.detailBtn.layer.cornerRadius = 5.f;
    self.detailBtn.layer.masksToBounds = YES;
    self.detailBtn.backgroundColor = ThemeBlue;
    
    // Initialization code
}

- (void)setModel:(NMyShenbaoModel *)model{
    
    _model = model;
    self.nameLabel.text = _model.declarationName;
    NSString *start = [[ToolKit getTimeFromTimesTamp:model.declarationStartTime] substringToIndex:10];
    NSString *end = [[ToolKit getTimeFromTimesTamp:model.declarationEndTime] substringToIndex:10];
    self.nianxianLabel.text = [NSString stringWithFormat:@"%@-%@",start,end];
    self.touziLabel.text = [NSString stringWithFormat:@"%@",model.declarationInvestment];
    self.dateLabel.text = [ToolKit getTimeFromTimesTamp:model.declarationTime];
    self.industryLable.text = model.declarationIndustry;
    self.keshiLabel.text = model.declarationDept;
    self.currentStatusLabel.text = model.declarationStatus;
    self.areaLabel.text = model.declarationAddress;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
